/**
 * @author ZhongJiang
 */


var articleEditor_inputEditor;

KindEditor.ready(function(K) {
	var editor1 = K.create('textarea[name="inputTextArea"]', {
		cssPath : 'plugins/kindeditor/plugins/code/prettify.css',
		uploadJson : 'plugins/kindeditor/jsp/upload_json.jsp',
		fileManagerJson : 'plugins/kindeditor/jsp/file_manager_json.jsp',
		allowFileManager : true,

		resizeType : -1,
		minWidth: 500,
		minHeight: 180,
		items : [
			'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
			'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
			'insertunorderedlist', '|', 'emoticons', 'image', 'link']
	});
	prettyPrint();
	articleEditor_inputEditor = editor1;
});

// 隐藏弹出编辑器DIV
function hideInputDiv() {
	$('#inputBGDiv').css({
		'display':'none'
	});
	$('#inputDiv').css({
		'display':'none'
	});
}